<div class="sidebar-collapse">
    <ul class="nav" id="side-menu" style="display: block;">

@        //获得一级菜单
@       var items = tag.data;
@       for(menu in items){
        <li class="" id="${menu.id}" >
            <a>
                <span class="nav-label">${menu.name}</span>
                
@                   //是否存在二级菜单
@                    var submenus = menu.submenu;
@                    if(submenus.~size > 0) {
                <span>  >>>  </span>
            </a>
            <ul>
@                for(submenu in submenus){
               <li id="${submenu.id}"><a>${submenu.name}</a></li>
@                }
            </ul>
@                    } else {
            </a>
@                    }
        </li>
@            }
    </ul>

</div>

